/**
 *
 */
package jp.seraph.jsade.perceptor;

import jp.seraph.jsade.math.Angle;

/**
 *
 *
 */
public class HearPerceptor implements Perceptor {
    public HearPerceptor(double aTime, String aMessage){
        this(aTime, null, aMessage);
    }

    public HearPerceptor(double aTime, Angle aAngle, String aMessage){
        mTime = aTime;
        mAngle = aAngle;
        mMessage = aMessage;
    }

    private double mTime;
    private Angle mAngle;
    private String mMessage;

    public boolean isSelf(){
        return mAngle == null;
    }

    public double getTime(){
        return mTime;
    }

    public Angle getAngle(){
        return mAngle;
    }

    public String getMessage(){
        return mMessage;
    }

    /**
     *
     * @see jp.seraph.jsade.perceptor.Perceptor#accept(jp.seraph.jsade.perceptor.PerceptorVisitor)
     */
    
    public void accept(PerceptorVisitor aVisitor) {
        aVisitor.visit(this);
    }
}
